interface A {
    name: string;
}

interface B {
    age: number;
}

interface C extends A, B{
    height: number;
}

const inf: A|B  = {name: 'mystic'}
console.log(inf.name)

const inf2: C = {
    name: 'mystc',
    age: 12,
    height: 180
}
console.log(inf2.height)